﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;

namespace Dotnet.Code.Extend
{
    public static partial class Ext
    {
        /// <summary>
        /// Convert Byte[] to Image
        /// </summary>
        /// <param name="buffer"></param>
        /// <returns></returns>
        //public static Image ToImage(this byte[] buffer)
        //{
        //    MemoryStream ms = new MemoryStream(buffer);
        //    Image image = System.Drawing.Image.FromStream(ms);
        //    return image;
        //}
    }
}
